import axios from 'axios'
import instance from '@/utils/axios.js'
export default {
  //  用户登录
  userLogin (data) {
    return axios.post('/api/auth/codeMerchant', data)
  },
  //  获取商品列表
  proListInfo (data) {
    return instance.get('/api/smi-code-merchant/listByMerchantId', data)
  },
  //  删除商品
  delPro (data) {
    return instance.get('/api/smi-good/deleteGoodByGoodId', data)
  },
  //  商品详情
  proDetail (data) {
    return instance.get('/api/smi-good/goodDetail', data)
  },
  //  商品列表-授权IP
  getIp () {
    return instance.get('/api/smi-code-merchant/getByMerchantIdToIP')
  },
  //  授权方下拉框
  getByMerchantIdToMember () {
    return instance.get('/api/smi-code-merchant/getByMerchantIdToMember')
  }
}
